﻿//-----------------------------------------------------------------------
// <copyright file="ProblemDescription.cs" company="Numbrella foundation">
// Copyright (c) Numbrella foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Numbrella.Interaction
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// Represents description of Numbrella problem.
    /// </summary>
    [DataContract]
    public class ProblemDescription
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ProblemDescription"/> class.
        /// </summary>
        /// <param name="text">Problem description text.</param>
        public ProblemDescription(string text)
        {
            if (String.IsNullOrEmpty(text)) throw new ArgumentNullException("text");

            this.Text = text;
        }

        /// <summary>
        /// Gets textual description of problem.
        /// </summary>
        [DataMember]
        public string Text { get; private set; }
    }
}
